<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- <html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>东万楼盘小程序管理后台</title>
<link rel="stylesheet" href="/dvmini/res/layui-v2.1.4/layui/css/layui.css">
<link rel="stylesheet" href="/dvmini/res/css/Layuiglobal.css">
<style>
			.container {
				padding: 16px;
			}
			
			.layui-side-scroll {
				width: 200px;
			}
			
			.layui-layout-admin .layui-side {
				width: 180px;
			}
			
			.layui-layout-admin .layui-body {
				left: 180px;
			}
			
			.layui-nav-tree .layui-nav-more {
				right: 30px;
			}
		</style>

</head>
<body>
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header">
			<div class="layui-logo">东万楼盘小程序管理后台</div>
			头部区域（可配合layui已有的水平导航）

			<ul class="layui-nav layui-layout-right">
				<li class="layui-nav-item"><a href="javascript:;"> <img src="http://t.cn/RCzsdCq" class="layui-nav-img"> 登录者
				</a></li>
				<li class="layui-nav-item"><a href="">退了</a></li>
			</ul>
		</div>

		<div class="layui-side layui-bg-black">
			<div class="layui-side-scroll" id="admin-navbar-side">
				左侧导航区域（可配合layui已有的垂直导航）
				<ul class="layui-nav layui-nav-tree" lay-filter="test">
					<li class="layui-nav-item layui-nav-itemed"><a class="" href="javascript:;">管理</a>
						<dl class="layui-nav-child">							<dd>
								<a href="javascript:;">项目管理</a>
							</dd>
							<dd>
								<a href="javascript:;">自动回复</a>
							</dd>
							<dd>
								<a href="javascript:;">海报模板</a>
							</dd>
							<dd>
								<a href="javascript:;">销售人员</a>
							</dd>
							<dd>
								<a href="javascript:;" data-url="vanker/listView">万小二</a>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a href="javascript:;">报表</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="javascript:;" data-url="">客服记录</a>
							</dd>
							<dd>
								<a href="javascript:;" data-url="">海报记录</a>
							</dd>
							<dd>
								<a href="javascript:;" data-url="">粉丝记录</a>
							</dd>
							<dd>
								<a href="javascript:;" data-url="">销售报表</a>
							</dd>
							<dd>
								<a href="javascript:;" data-url="">万小二报表</a>
							</dd>
						</dl></li>

				</ul>
			</div>
		</div>



		<div class="layui-body" style="bottom: 0; border-left: solid 2px #1AA094;" id="admin-body">
			<div class="layui-tab admin-nav-card layui-tab-brief" lay-filter="admin-tab">
				<ul class="layui-tab-title">
					<li class="layui-this"><i class="fa fa-dashboard" aria-hidden="true"></i> <cite>首页</cite></li>
				</ul>
				<div class="layui-tab-content" style="height: 1000px; padding: 0;">
					<div class="layui-tab-item layui-show" style="height: 1000px; padding: 10px;">
						<iframe src="" target="_self" id="baseIframe"></iframe>
					</div>
				</div>
			</div>
		</div>



	
	<script src='http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js'></script>
	<script src="/dvmini/res/layui-v2.1.4/layui/layui.js"></script>
	<script>
		//JavaScript代码区域
		layui.use('element', function() {
			var element = layui.element;

		});
	</script>
	<script>
		window.onhashchange = function() {
			var hash = location.hash;
			hash = hash.substring(1, hash.length);
			console.log(hash)
			$("#baseIframe").attr("src", hash);
		}
		
		$("#admin-navbar-side").on("click", "a", function() {

			var ifurl = "";
			ifurl = $(this).attr("data-url");
			if (ifurl == null) {
				return false;
			} else {
				console.log(ifurl);
				var u = window.location.href;
				var end = u.indexOf("#");
				var rfurl = u.substring(0, end);
				window.location.href = rfurl + "#" + ifurl;
			}
		})

		document.addEventListener('DOMContentLoaded', function() {
			var hash = location.hash;
			var ifurl = hash.substring(1, hash.length);
			if (ifurl == null || ifurl == "") {
				$("#baseIframe").attr("src", "/hello");
			} else {
				$("#baseIframe").attr("src", ifurl);
			}
		}, false)

		layui.use('layer', function() {
			var $ = layui.jquery
			var layer = layui.layer;

			// 初始化
			function init() {

			}
			init();

		})
	</script>

</div>
</body>
</html> -->
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>东万小程序后台</title>
        <link rel="stylesheet" href="../plugins/layui/css/layui.css">
		<link rel="stylesheet" href="../css/Layuiglobal.css">
		<link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
		<link rel="stylesheet" href="http://at.alicdn.com/t/font_191348_9fd7twf7my3hxgvi.css">
		<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_191348_9plc0g9xe2ep14i.css">
		<script src='http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js'></script>
		<style>
			.container {
				padding: 16px;
			}
			
			
			.layui-nav-tree .layui-nav-more {
				right: 30px;
			}
			.layui-layout-admin .site-demo-body {
			    top: 70px;
			}
			.layui-layout-admin .header-demo{
				border: none;
			}
			#chromeTip{
				position:fixed;
				top:0;
				bottom:0;
				left:0;
				right:0;
				background-color:#fff;
				z-index: 10000;
				display: none;
				
			}
			.browserhint{
			    width: 800px;
			    margin: 0 auto;
			    border-radius: 4px;
			    height: 100px;
			    top: 50%;
			    margin-top: -50px;
			    position: relative;
			    color: #666;
			    text-align: center;
			}
			.browserhint i{
				position:absolute;
				right:40px;
				top:20px;
				color:#fff;
				font-size:16px;
			}
			.browserhint p{
				line-height:35px;
			}
			.browseimg{
				background:url(../images/browser.png) no-repeat top -60px left 0px;
				width:40px;
				height:40px;
				vertical-align: middle;
				margin:0 5px;
				display: inline-block;
			}
			.fa{
				margin-top:10px;
			}
		</style>
		<script>
		/* $(function(){
			var tipObj = document.getElementById('chromeTip');
			if(tipObj){
				if( navigator.userAgent.indexOf('Chrome') == -1 || navigator.userAgent.indexOf('Edge') != -1){
					tipObj.style.display = 'block';
				}
			}
		}) */
			
		</script>
	</head>
	
	<body>
		<div id="chromeTip"> 
			<div class="browserhint">
				<p>由于您正在使用非谷歌内核的浏览器，微易互动将无法为您提供最佳体验。<br />
	建议您更换：<a href="http://rj.baidu.com/soft/detail/14744.html?ald" target="_blank" style="color:#ff8400;text-decoration: underline;"><span class="browseimg"></span>谷歌浏览器</a></p>
			</div>
		</div>
		<div class="layui-layout layui-layout-admin">
			<div class="layui-header header header-demo">
				<div class="layui-main">
					<div class="admin-login-box">
						<a class="logo">
							<img src="../images/logo.png" />
						</a>
						<div class="admin-side-toggle">
							<i class="fa fa-bars" aria-hidden="true"></i>
						</div>
						<div class="admin-side-full">
							<i class="fa fa-life-bouy" aria-hidden="true"></i>
						</div>
					</div>
					<ul class="layui-nav admin-header-item" style="right:80px;">
						
						<li class="layui-nav-item">
							<a href="javascript:;" class="admin-header-user loginnamebtn">
								<span class="loginname">登陆名</span>
							</a>
							<!--<dl class="layui-nav-child">
								<dd>
									<a class="signOut">
										<i class="fa fa-sign-out" aria-hidden="true"></i> 退出
									</a>
								</dd>
							</dl>-->
						</li>
					</ul>
					<div class="layui-nav-item" style="position: absolute;top:0;right:10px;">
						<a class="signOut" style="color:#999;padding:0 12px;line-height:25px;margin-top:20px;border:1px solid #999;border-radius:20px;display:inline-block; cursor: pointer;">退出</a>
					</div>
					<!--<ul class="layui-nav admin-header-item-mobile">
						<li class="layui-nav-item">
							<a class="signOut"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出</a>
						</li>
					</ul>-->
				</div>
			</div>
			<!--侧方导航-->
			<div class="layui-side layui-bg-black" id="admin-side">
				<div class="layui-side-scroll" id="admin-navbar-side" lay-filter="side"></div>
			</div>
			<div class="layui-body layui-tab-content site-demo site-demo-body" style="bottom: 0;" id="admin-body">
				<div class="layui-tab admin-nav-card layui-tab-brief" lay-filter="admin-tab">
					<ul class="layui-tab-title">
						<li class="layui-this">
							<i class="fa fa-dashboard" aria-hidden="true"></i>
							<cite>欢迎页</cite>
						</li>
					</ul>
					<div class="layui-tab-content" style="min-height: 150px; padding: 0; height: auto;">
						<div class="layui-tab-item layui-show">
							<iframe src="/project/projectIndex" target="_self" id="baseIframe"></iframe>
						</div>
					</div>
				</div>
			</div>

			<div class="site-tree-mobile layui-hide">
				<i class="layui-icon">&#xe602;</i>
			</div>
			<div class="site-mobile-shade"></div>
			<script src='http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js'></script>
			<script src="../plugins/layui/layui.js" charset="utf-8"></script>
			<script src="../js/navbar.js" charset="utf-8"></script>
			<script type="text/javascript" src="../plugins/datas/nav.js"></script>
			<script src="../js/index.js"></script>
			<script src="../js/me.js"></script>
			<script>
				
				
				
				var cookie="Th_xc_30b679eb2c90c60ff8679ce4ca562fcc";
				function setCookie(name, value) {
					var Days = 0;
					var exp = new Date();
					exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
					document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString() + ";path=/";
				}

				var merchantid = null;
				layui.use('layer', function() {
					var $ = layui.jquery;
					var layer = layui.layer;

					var globalNum = {
						account: '',
						phone: '',
						nickname: ''
					};

					//获取商户id
				/* 	$.post( url_gobol + "merchantlogin/selectdata", function(data) {
						if(data.code == 0 && data.data != '') {
							merchantid = data.data.id;
							globalNum.account = data.data.account;
							globalNum.phone = data.data.phone;
							globalNum.nickname = data.data.nickname;
							$(".loginname").html(globalNum.account);
						}
						if(data.code != 0) {
							layer.msg(data.msg)
						}
					}) */


					$(".loginnamebtn").on("click",function(){
						if(parent.tab.exists("基本资料")>0){
							var tabid=parent.tab.getTabId("基本资料");
							parent.tab.deleteTab(tabid);
						}
						parent.tab.tabAdd({
							href: "_userManagement/baseData.html",
							icon: "fa-cubes",
							title: "基本资料" 
						});
					})
					
					//登出
					$(".signOut").click(function() {
						$.post( url_gobol + "loginapi/exit", {
							id: 3
						}, function(data) {
							if(data.code == 0) {
								//setCookie(cookie, "");
							}
						});
						location.href = "../../index/login.html"
					})

					// 初始化
					function init() {

					}
					init();
					
				})
			</script>
		</div>
	</body>

</html>